/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.menosehmais.framework.persistence;

import javax.persistence.Transient;

/**
 *
 * @author Quintino
 */
public abstract class DomainObjectDTO< DO extends DomainObject > implements DataTransferObject{

    @Transient
    private transient final DO domainObject;
	
    public DomainObjectDTO( DO domainObject ){
        this.domainObject = domainObject;
    }
    
    public abstract DO toDomainObject();
    
    protected DO domainObjectInstance() {
        return this.domainObject;
    }
}
